import axios from '@/request/http';
import base from "./base";

const office = {
  getOffices(){
    return axios.get(`${base.sq}/offices`)
  },
  officeAdd(payload){
    return axios.post(`${base.sq}/offices`,payload)
  },
  officeDelete({id}){
    return axios.delete(`${base.sq}/offices/${id}`)
  },
  officePatch(id,office){
    return axios.patch(`${base.sq}/offices/${id}`,office)
  },
}

export default office;
